<?php

require_once 'Core/Db/Table/Abstract.php';
require_once 'Core/Db/Table/Row/Abstract.php';
require_once 'Core/Db/Table/Rowset/Abstract.php';

class Nld_Models_Statics_DbTable extends Core_Db_Table_Abstract
{
  public function init()
  {
		$this->_name 					= 'statics';
		$this->_primary 			= 'id';
		$this->_rowClass 				= 'Core_Db_Table_Row_Abstract';
		$this->_rowsetClass 		= 'Core_Db_Table_Rowset_Abstract';
  }
  public function getMaxId()
  {
    $entry = $this->getAdapter()->query('SELECT MAX(`id`) AS maxId FROM ' . $this->_name)->fetchObject();
    return ($entry == null) ? 0 : intval($entry->maxId);
  }

}